bind-source="userListModel"
bind-property="n-items"
bind-flags="sync-create"/>
- <child>
- <object class="GtkListBox" id="userList">
- <property name="selection-mode">none</property>
- <accessibility>
- <relation name="labelled-by">userGroup</relation>
- </accessibility>
- <style>
- <class name="boxed-list"/>
- </style>
- </object>
- </child>
</object>
</child>
<child>
bind-source="systemListModel"
bind-property="n-items"
bind-flags="sync-create"/>
- <child>
- <object class="GtkListBox" id="systemList">
- <property name="selection-mode">none</property>
- <accessibility>
- <relation name="labelled-by">systemGroup</relation>
- </accessibility>
- <style>
- <class name="boxed-list"/>
- </style>
- </object>
- </child>
</object>
</child>
</object>
<property name="child">
<object class="AdwPreferencesPage">
<child>
- <object class="AdwPreferencesGroup">
- <child>
- <object class="GtkListBox" id="searchList">
- <property name="selection-mode">none</property>
- <accessibility>
- <property name="label" translatable="yes">Search Results</property>
- </accessibility>
- <style>
- <class name="boxed-list"/>
- </style>
- </object>
- </child>
+ <object class="AdwPreferencesGroup" id="searchGroup">
+ <accessibility>
+ <property name="label" translatable="yes">Search Results</property>
+ </accessibility>
</object>
</child>
</object>
'systemListModel',
'searchListModel',
'userGroup',
- 'userList',
'systemGroup',
- 'systemList',
- 'searchList',
+ 'searchGroup',
'mainStack',
'searchBar',
'searchEntry',
this._searchListModel.connect('notify::n-items',
() => this._syncVisiblePage());
- this._userList.connect('row-activated', (_list, row) => row.activate());
this._userGroup.connect('notify::visible', () => this._syncVisiblePage());
-
- this._systemList.connect('row-activated', (_list, row) => row.activate());
this._systemGroup.connect('notify::visible', () => this._syncVisiblePage());
const {extensionManager} = this.application;
this._sortModel.model = extensionManager.extensions;
- this._userList.bind_model(this._userListModel,
+ this._userGroup.bind_model(this._userListModel,
extension => new ExtensionRow(extension));
- this._systemList.bind_model(this._systemListModel,
+ this._systemGroup.bind_model(this._systemListModel,
extension => new ExtensionRow(extension));
- this._searchList.bind_model(this._searchListModel,
+ this._searchGroup.bind_model(this._searchListModel,
extension => new ExtensionRow(extension));
extensionManager.connect('extensions-loaded',